/**
 * 
 */
package com.epam.traning.taskmanager.fragment;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.epam.traning.taskmanager.R;

/**
 * @author IstiN
 *
 */
public class MagicFragment extends Fragment {

	private long id = 100;
	
	/* (non-Javadoc)
	 * @see android.support.v4.app.Fragment#onCreateView(android.view.LayoutInflater, android.view.ViewGroup, android.os.Bundle)
	 */
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		if (container == null) {
			return null;
		}
		View view = inflater.inflate(R.layout.fragment_magic, null);
		TextView textView = (TextView) view.findViewById(R.id.textView);
		Bundle arguments = getArguments();
		if (arguments != null) {
			textView.setText(arguments.getString("text"));
		}
		return view;
	}

	public long getFId() {
		return id;
	}
	
	
}
